package ooday01;
//车类的测试
public class CarTest {
    public static void main(String[] args) {
        Car car1 = new Car("a","红",10);
        Car car2 = new Car("b","蓝",25.8);
        car1.start();
        car1.run();
        car1.stop();

        car2.start();
        car2.run();
        car2.stop();

        Car car3 = new Car();
        car3.brand="c";
        car3.color="橘黄";
        car3.price=500;
        car3.start();
        car3.run();
        car3.stop();
    }
}
